package edu.dzxx.utils;

import edu.dzxx.dao.GeologicalMapper;
import edu.dzxx.pojo.Table;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

import java.util.List;

@SpringBootTest
@RunWith(SpringRunner.class)
public class GetTableTest {

    @Autowired
    private GeologicalMapper geologicalMapper;

    @Test
    public void getTables(){
        List<Table> list=geologicalMapper.getTables();
        for (Table table:list){
            System.out.println(table.getTableName());
        }
    }
}
